<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>


<script type="text/javascript">
	$(function() {
		$('#index_login_form').form({
			url : 'pcOperatorAction!login.action',
			success : function(r) {
				var obj = jQuery.parseJSON(r);
				if (obj.success) {
					$('#index_login_dialog').dialog('close');
				}
				$.messager.alert({
					title : '提示',
					msg : obj.msg
				});
			}
		});
		$('#index_login_form input').bind('keyup', function(event) {/* 增加回车提交功能 */
			if (event.keyCode == '13') {
				$('#index_login_form').submit();
			}
		});
	});
</script>

<div id="index_login_dialog" class="easyui-dialog" style="width: 600px; height: 400px;" data-options="
		title:false,
		modal:true,
		buttons: [{text:'注册',iconCls:'icon-edit',
					handler:function(){
						$('#index_reg_dialog').dialog('open');
						$('#index_reg_form').form('clear');
					}
				},{text:'登录',
					iconCls:'icon-ok',
					handler:function(){	
						$('#index_login_form').submit();
					}
				}],
				onClose(){
					window.location.href='main.jsp';
				}
				">
	<div class="easyui-panel" data-options="fit:true">
		<div class="easyui-layout" data-options="fit:true,border:false">
			<div data-options="region:'north',title:false,border:false" style="height: 33%;">
				<div align="center" style="margin: 5%; font-size: 20pt">健身场所后台管理系统</div>
			</div>
			<div data-options="region:'center',title:false,border:false">
				<form id="index_login_form" method="post" style="margin-top: 5%;">
					<div style="margin-bottom: 20px; margin-left: 12%">
						<input class="easyui-textbox" name="account" prompt="用户名" iconWidth="20" style="width: 420px; height: 50px; padding: 20px;" data-options="required:true">
					</div>
					<div style="margin-left: 12%">
						<input class="easyui-passwordbox" name="password" prompt="密码" iconWidth="20" style="width: 420px; height: 50px; padding: 20px" data-options="required:true">
					</div>
				</form>
			</div>
		</div>
	</div>
</div>